package com.mcbbs.web.service;

import com.mcbbs.web.entity.Users;

import java.util.List;
import java.util.Map;

public interface UsersService {
    public Users login(String username,String password);
    public List<Users> getAllUsers();
    public Users getUsersByName(String username);
    public Users getUsersByID(int id);
    public Users getUsersByEmail(String email);
    public List<Users> search(Map<String,Object> map);
//   修改密码
    public int setUsersPwd(Users users);
//    修改用户邮箱
    public int setUsersEmail(Users users);
//    添加用户
    public int regUsers(Users users);

}
